import Vue from "vue";
import VueRouter from "vue-router";
import routes from "./routerConfig";

Vue.use(VueRouter);
// 向路由中添加一个 默认路由，并重定向到 /test 去
routes.unshift({ path: "/", redirect: "/index" });

export default new VueRouter({ routes });
